import request from '@/utils/request'

// 生成订单，返回订单号
export function createOrder() {
  return request({
    url: '/saleOrderCostume/createOrder',
    headers : {
      isToken : false
    },
    method: 'get',
  })
}

// 录入商品，识别商品，将商品加入购物车
export function identifyCostume(data) {
  return request({
    url: '/saleOrderCostume/identifyCostume',
    headers : {
      isToken : false
    },
    method: 'get',
    params: data
  })
}

// 确认下单
export function commitOrder(data) {
  return request({
    url: '/saleOrderCostume/commitOrder',
    headers : {
      isToken : false
    },
    method: 'get',
    params: data
  })
}



